/*!
Copyright (c) REBUILD <https://getrebuild.com/> and/or its owners. All rights reserved.

rebuild is dual-licensed under commercial and open source licenses (GPLv3).
See LICENSE and COMMERCIAL in the project root for license information.
*/

.grid-stack .grid-stack-item {
  padding: 0;
  margin: 0;
  max-height: none !important;
}

.grid-stack .grid-stack-item .grid-stack-item-content {
  background-color: #fff;
  height: 100%;
}

.grid-stack .grid-stack-item .grid-stack-item-content.high,
.grid-stack .grid-stack-item .grid-stack-item-content:hover {
  box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.1), 0 16px 24px 0 rgba(81, 129, 228, 0.1);
}

.grid-stack .grid-stack-item .grid-stack-item-content.high {
  outline: 2px solid #4285f4;
}

.grid-stack .grid-stack-item .grid-stack-item-content:hover .chart-oper {
  display: block;
}

.grid-stack > .grid-stack-item > .ui-resizable-se,
.grid-stack > .grid-stack-item > .ui-resizable-sw {
  background-image: url();
  background-position: center center;
  background-repeat: no-repeat;
  background-color: transparent;
  -webkit-transform: rotate(0deg);
  -moz-transform: rotate(0deg);
  -ms-transform: rotate(0deg);
  -o-transform: rotate(0deg);
  transform: rotate(0deg);
  right: 5px;
}

.grid-stack > .grid-stack-item > .grid-stack-item-content {
  overflow: hidden;
  overflow: unset;
  left: 5px;
  right: 5px;
}

.grid-stack .grid-stack-placeholder > .placeholder-content {
  background-color: #fff;
  border-color: #fff;
  opacity: 0.3;
}

.tools-bar {
  height: 44px;
  padding: 7px 20px 0;
  padding-right: 15px;
}

.tools-bar h4 {
  margin: 10px 0;
  cursor: pointer;
}

.tools-bar h4:hover {
  opacity: 0.8;
}

.chart-grid {
  padding: 0 15px 20px 15px;
  margin-top: 8px;
  min-height: 300px;
  height: auto;
}

@media (max-width: 768px) {
  .chart-grid {
    overflow: hidden;
    padding: 2px 15px 0;
  }

  .grid-stack > .grid-stack-item > .grid-stack-item-content {
    left: 0;
    right: 0;
  }

  .tools-bar .col-sm-6 {
    padding-left: 5px;
    padding-right: 5px;
  }

  .grid-stack.grid-stack-one-column-mode > .grid-stack-item {
    margin-bottom: 15px;
  }
}

@media (max-width: 576px) {
  .tools-bar .col-sm-6 {
    padding-left: 0;
    padding-right: 0;
  }
}

.chart-add {
  display: block;
  text-align: center;
  height: 100%;
  padding-top: 20px;
}

.chart-add i.zmdi {
  font-size: 71px;
  color: #ddd;
  font-weight: lighter;
}

.dash-list .dash-head {
  display: inline-block;
  padding-right: 71px;
  position: relative;
}

.dash-head .dash-action {
  position: absolute;
  top: 0;
  right: 0;
  padding-top: 8px;
  padding-left: 6px;
  display: none;
  text-align: left;
  width: 70px;
}

.dash-head:hover .dash-action {
  display: block;
}

.dash-head .dash-action a {
  padding: 3px;
  margin-left: 3px;
}

.modal.select-list .modal-body li a {
  border: 1px solid #4285f4;
  background-color: #fff;
  padding: 8px 10px;
  color: #4285f4;
  border-radius: 0;
}

.J_dash-select:hover {
  color: #4285f4;
}

.dash-right .btn-group {
  margin-top: 7px;
  margin-right: 3px;
}

.dash-right .btn-group > .btn {
  min-height: 24px;
  line-height: 24px;
  min-width: 0;
}

body.fullscreen .J_dash-fullscreen .zmdi-fullscreen::before {
  content: '\f16c';
}

.chart-grid.uneditable .chart-box .chart-head .chart-title {
  cursor: default;
}

.dash-right .J_darkmode {
  display: none;
}

body.fullscreen .dash-right .J_darkmode {
  display: inline-block;
}

body.fullscreen .announcement-wrapper {
  display: none;
}

.grid-stack-item.fullscreen {
  position: absolute;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 99;
}

.grid-stack-item.fullscreen .ui-resizable-handle {
  display: none !important;
}

body.fullscreen.darkmode .chart-title {
  color: rgba(255, 255, 255, 0.68);
}

body.fullscreen.darkmode .chart.index > .data-item p,
body.fullscreen.darkmode .chart.index > .data-item strong,
body.fullscreen.darkmode .tools-bar h4 {
  color: #fff;
}

body.fullscreen .tools-bar h4 {
  font-weight: bold;
}



.grid-stack-item.bgcolor .grid-stack-item-content,
.grid-stack-item.bgcolor .chart.index > .data-item strong {
  color: #fff;
}

.grid-stack-item.bgcolor .rb-loading::after {
  background-color: transparent;
}

.grid-stack-item.bgcolor .rb-spinner svg {
  stroke: #fff;
}



body.fullscreen.darkmode {
  background: #191a2c;
}

body.fullscreen.darkmode .grid-stack .grid-stack-item .grid-stack-item-content,
body.fullscreen.darkmode .chart-box.ApprovalList .progress-wrap,
body.fullscreen.darkmode .table-striped tbody tr:nth-of-type(odd) {
  background-color: #24273e;
}

body.fullscreen.darkmode .chart .table,
body.fullscreen.darkmode .chart .table td > a {
  background-color: transparent;
  color: #fff;
}

body.fullscreen.darkmode .chart .table th {
  background-color: #1e2033;
}

body.fullscreen.darkmode .chart .table thead,
body.fullscreen.darkmode .chart .table tbody,
body.fullscreen.darkmode .chart .table th,
body.fullscreen.darkmode .chart .table td,
body.fullscreen.darkmode .chart .table {
  border-color: #191a2c;
}

body.fullscreen.darkmode .chart .table tr:hover,
body.fullscreen.darkmode .chart .table th:hover,
body.fullscreen.darkmode .chart .table tr.highlight,
body.fullscreen.darkmode .tcs-selected {
  background: unset;
}

body.fullscreen.darkmode .ApprovalList thead th,
body.fullscreen.darkmode .ProjectTasks thead th,
body.fullscreen.darkmode .FeedsSchedule thead th {
  padding-top: 7px;
}
